<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar" style="display: none;">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                        <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('company/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                        <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('company/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
                        <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('company/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
                        <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('company/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>

                        <div class="dropdown btn-group {:$auth->check('company/multi')?'':'hide'}">
                            <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
                            <ul class="dropdown-menu text-left" role="menu">
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
                            </ul>
                        </div>

                        
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap" data-search="false" data-common-search="true" data-show-toggle="false" data-show-columns="false" data-show-export="false"
                           data-operate-edit="{:$auth->check('company/edit')}"
                           data-operate-del="{:$auth->check('company/del')}" 
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>

<script id="companyformtpl" type="text/html">
    <form action="" class="form-horizontal form-commonsearch nice-validator n-default n-bootstrap" method="post">
        <div class="well" style="box-shadow:none;border-radius:2px;margin-bottom:10px;">
            <div class="row">
                <div class="col-xs-3 col-sm-6 col-md-3">
                    <div class="form-group">
                        <label class="control-label">{:__('Company_name')}</label>
                        <input class="operate" type="hidden" data-name="company_name" value=""/>
                        <input class="form-control" style="width: auto;" type="text" name="company_name" placeholder="" value=""/>
                    </div>
                </div>
                <div class="col-xs-3 col-sm-6 col-md-3">
                    <div class="form-group">
                        <label class="control-label">{:__('Company_lianxiren')}</label>
                        <input class="operate" type="hidden" data-name="company_lianxiren" value=""/>
                        <input class="form-control" style="width: auto;" type="text" name="company_lianxiren" placeholder="" value=""/>
                    </div>
                </div>
                <div class="col-xs-3 col-sm-6 col-md-3">
                    <div class="form-group">
                        <label class="control-label">{:__('交付代表')}</label>
                        <input class="operate" type="hidden" data-name="deliver_uname" value=""/>
                        <input class="form-control" style="width: auto;" type="text" name="deliver_uname" placeholder="" value=""/>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-3 col-sm-6 col-md-3">
                    <div class="form-group">
                        <label class="control-label">{:__('状态')}</label>
                        <input type="hidden" class="operate" data-name="requesting" value="="/>
                        {:build_select('requesting', $requesting, 0, ['class'=>'form-control selectpicker'])}
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-3 col-sm-6 col-md-3">
                    <div class="form-group">
                        <label class="control-label"></label>
                        <div class="row">
                            <div class="col-xs-6">
                                <input type="submit" class="btn btn-success btn-block" value="{:__('Submit')}"/>
                            </div>
                            <div class="col-xs-6">
                                <input type="reset" class="btn btn-primary btn-block" value="{:__('Reset')}"/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</script>
